Skip to content

Commit

Permalink
Merge tag 'rc-v4.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
rowasc committed Apr 14, 2020
2 parents 1b26445 + 58a7f35 commit 5ba8fa4
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 23 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Ushahidi Platform Web Client
[![Dependency Status](https://david-dm.org/ushahidi/platform-client/dev-status.svg?style=flat)](https://david-dm.org/ushahidi/platform-client#info=devDependencies)

___
## Report and find Ushahidi Platform V3 issues

All our issues live in https://github.com/ushahidi/platform/issues .

## Try it out on Heroku

Expand Down
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
2 changes: 1 addition & 1 deletion app/common/verifier/verifier.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import isUrl from 'is-url';
import fetch from 'node-fetch';
import fetch from 'cross-fetch';
import * as forms from '../../../mocked_backend/api/v3/forms.json';
import * as tags from '../../../mocked_backend/api/v3/tags.json';
import * as features from '../../../mocked_backend/api/v3/config/features.json';
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/add-post-button.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="fab" ng-class="{'upgrade-button': upgradeButton}" data-message="add-post">
<button type="button" class="button-alpha button-fab" ng-click="handleClick()" ng-disabled="disabled" ng-class="{'disabled': $parent.$parent.bulkActionsSelected}">
<button type="button" class="button-alpha button-fab" ng-click="handleClick()" ng-disabled="disabled" ng-class="{'ng-hide': $parent.$parent.bulkActionsSelected || editMode()}">
<svg class="iconic">
<use xlink:href="/img/iconic-sprite.svg#plus"></use>
<foreignObject>
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
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"gulp-rename": "^1.4.0",
"gulp-tar": "^3.1.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"html-webpack-plugin": "^4.0.0",
"imports-loader": "^0.8.0",
"is-url": "^1.2.4",
"jasmine-core": "^3.5.0",
Expand Down Expand Up @@ -85,7 +85,7 @@
"sass-loader": "^8.0.0",
"style-loader": "^1.1.2",
"supports-color": "^3.1.2",
"svg-url-loader": "^3.0.3",
"svg-url-loader": "^5.0.0",
"transifex": "^1.6.6",
"uglifyjs-webpack-plugin": "^2.2.0",
"url-loader": "^4.0.0",
Expand All @@ -111,8 +111,9 @@
"angular-translate-loader-static-files": "^2.11.0",
"angular-ui-bootstrap": "^2.5.0",
"checklist-model": "~0.11.0",
"cross-fetch": "^3.0.4",
"d3": "^3.5.17",
"leaflet.locatecontrol": "^0.70.0",
"leaflet.locatecontrol": "^0.71.1",
"leaflet": "^1.6.0",
"leaflet-easybutton": "^2.4.0",
"leaflet.markercluster": "1.0.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('user profile directive', function () {
});

describe('saveUser', function () {
describe('with a successfull backend call', function () {
describe('with a successful backend call', function () {
beforeEach(function () {
spyOn(UserEndpoint, 'update').and.callThrough();
});
Expand Down
10 changes: 8 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,19 @@ module.exports = {
{
test: /\.png/,
use: {
loader: 'url-loader?limit=10000'
loader: 'url-loader?limit=10000',
options: {
esModule:false
}
}
},
{
test: /\.svg/,
use: {
loader: 'svg-url-loader?limit=1'
loader: 'svg-url-loader?limit=1',
options: {
esModule: false
}
}
},
{
Expand Down

0 comments on commit 5ba8fa4

Please sign in to comment.