Skip to content

Commit

Permalink
Merge branch 'develop' into upgrading-buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
rowasc authored Apr 3, 2020
2 parents 3cbd95b + f83e981 commit a988d4c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/common/directives/filter-system/filter-searchbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ng-model="model.q"
ng-focus="showSearchResults()"
ng-keyup="detectSubmit($event)"
ng-value="model.q"
ng-value="model.q=''"
>
<svg class="iconic" ng-show="!form.q.$viewValue.length">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/img/iconic-sprite.svg#magnifying-glass"></use>
Expand Down
5 changes: 1 addition & 4 deletions app/common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,7 @@
"error_in_upload": "Your image is too large (maximum size is 1MB) or has the wrong format (allowed formats are gif, png, jpg and jpeg), please check and try again!"
},
"video" : {
"enter_a" : "Enter a",
"or" : " or ",
"vimeo" : " Vimeo",
"video_url" : " video URL"
"enter_a_url": "Enter a video URL from Youtube or Vimeo."
},
"unstructured" : {
"add_survey" : {
Expand Down
1 change: 0 additions & 1 deletion app/main/posts/modify/post-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ <h1 class="mode-context-title"><bdi>{{post.form.name}}</bdi></h1>
</button>
</div>
<div class="button-group" ng-show="!post.id">
<post-share button="true" ng-show="!post.id"></post-share>
<button type="submit" class="button-alpha" ng-if="!saving_post">{{submit}}</button>
<button type="submit" class="button-alpha" disabled ng-if="saving_post">{{submitting}}
<div class="loading">
Expand Down
8 changes: 1 addition & 7 deletions app/main/posts/modify/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
<form>
<div class="form-field video_embed">
<label>{{label}}</label>
<p>
<span translate="post.video.enter_a">Enter a</span>

<img src="/img/youtube.png" class="wordmark-replace">
<span translate="post.video.or"> or </span>
<img src="/img/vimeo.png" class="wordmark-replace">
<span translate="post.video.video_url"> video URL</span>
<p translate="post.video.enter_a_url">Enter a video URL from Youtube or Vimeo.
</p>
<input type="text" ng-model="videoUrl" ng-blur="constructIframe(videoUrl)" placeholder="https://youtu.be/123456">

Expand Down
2 changes: 1 addition & 1 deletion app/main/posts/views/post-view-data.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function PostViewDataController(
limit: $scope.itemsPerPage
});
if (useOffset === true) {
postQuery.offset = ($scope.currentPage - 1) * $scope.itemsPerPage;
postQuery.offset = $scope.posts.length;
}
PostEndpoint.query(postQuery).$promise.then(function (postsResponse) {
//Clear posts
Expand Down
8 changes: 6 additions & 2 deletions app/settings/data-import/data-import.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ <h2 class="stepper-heading">
<div class="form-field select" data-fieldgroup-target="status-model-columns" ng-show="isStatusOption('defined_column')">
<div class="custom-select">
<select ng-model="selectedStatus">
<option ng-repeat="column in csv.columns track by $index" value="{{$index}}" label="{{column}}" >
<option ng-repeat="column in csv.columns track by $index" value="{{$index}}">
{{column}}
</option>
</select>
</div>
<p><em translate="data_import.status_explanation">Ushahidi recognizes one of three post statuses: Published, Under review, and Archived. So be sure that each entry in the column you select has one of those three values.</em></p>
Expand Down Expand Up @@ -183,7 +185,9 @@ <h2 class="stepper-heading">
<option selected="selected" value="" translate="data_import.leave_empty">
Leave empty
</option>
<option ng-repeat="column in csv.columns track by $index" value="{{$index}}" label="{{column}}" >
<option ng-repeat="column in csv.columns track by $index" value="{{$index}}">
{{column}}
</option>
</select>
</div>
</td>
Expand Down
1 change: 1 addition & 0 deletions app/settings/users/users.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function (
$q.all(calls).then(function () {
Notify.notify('notify.user.bulk_destroy_success');
$scope.getUsersForPagination();
$scope.selectedUsers.length = 0;
}, handleResponseErrors)
.finally($scope.filterRole);
}, function () {});
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ module.exports = {
{
test: /\.png/,
use: {
loader: 'url-loader?limit=10000'
loader: 'url-loader?limit=10000',
options: {
esModule:false
}
}
},
{
Expand Down

0 comments on commit a988d4c

Please sign in to comment.