Skip to content

Commit

Permalink
Fix all failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niranjan94 committed Apr 13, 2018
1 parent 98c27c1 commit f246ab4
Show file tree
Hide file tree
Showing 347 changed files with 1,567 additions and 1,548 deletions.
4 changes: 2 additions & 2 deletions app/components/events/event-import-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please upload a file')
prompt : this.get('l10n').t('Please upload a file')
},
{
type : 'regExp',
value : '/^(.*.((zip|xml|ical|ics|xcal)$))?[^.]*$/i',
prompt : this.l10n.t('Please upload a file in suggested format')
prompt : this.get('l10n').t('Please upload a file in suggested format')
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions app/components/events/view/overview/manage-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default Component.extend({
this.get('data.roleInvites').addObject(currentInvite);
}
this.set('isAddUserRoleModalOpen', false);
this.get('notify').success(this.get('isNewInvite') ? this.l10n.t('Role Invite sent successfully') : this.l10n.t('Role Invite updated successfully'));
this.get('notify').success(this.get('isNewInvite') ? this.get('l10n').t('Role Invite sent successfully') : this.get('l10n').t('Role Invite updated successfully'));
})
.catch(()=> {
this.get('notify').error(this.l10n.t('Oops something went wrong. Please try again'));
this.get('notify').error(this.get('l10n').t('Oops something went wrong. Please try again'));
})
.finally(()=> {
this.set('isLoading', false);
Expand All @@ -43,10 +43,10 @@ export default Component.extend({
this.get('data.roleInvites').removeObject(invite);
invite.destroyRecord()
.then(()=>{
this.get('notify').success(this.l10n.t('Role Invite deleted successfully'));
this.get('notify').success(this.get('l10n').t('Role Invite deleted successfully'));
})
.catch(()=> {
this.get('notify').error(this.l10n.t('Oops something went wrong. Please try again'));
this.get('notify').error(this.get('l10n').t('Oops something went wrong. Please try again'));
})
.finally(()=> {
this.set('isLoading', false);
Expand Down
16 changes: 8 additions & 8 deletions app/components/forms/admin/content/pages-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter a name')
prompt : this.get('l10n').t('Please enter a name')
}
]
},
Expand All @@ -23,7 +23,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter a title')
prompt : this.get('l10n').t('Please enter a title')
}
]
},
Expand All @@ -32,16 +32,16 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter the path')
prompt : this.get('l10n').t('Please enter the path')
},
{
type : 'regExp',
value : '/[^/](.*)/',
prompt : this.l10n.t('Path should not contain leading slash.')
prompt : this.get('l10n').t('Path should not contain leading slash.')
},
{
type : 'doesntContain[ ]',
prompt : this.l10n.t('Path should not contain whitespaces.')
prompt : this.get('l10n').t('Path should not contain whitespaces.')
}
]
},
Expand All @@ -50,7 +50,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please select a place')
prompt : this.get('l10n').t('Please select a place')
}
]
},
Expand All @@ -59,7 +59,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter a position')
prompt : this.get('l10n').t('Please enter a position')
}
]
},
Expand All @@ -68,7 +68,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter a language')
prompt : this.get('l10n').t('Please enter a language')
}
]
}
Expand Down
22 changes: 11 additions & 11 deletions app/components/forms/admin/content/social-links-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default Component.extend(FormMixin, {
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid url')
prompt : this.get('l10n').t('Please enter a valid url')
}
]
},
Expand All @@ -27,12 +27,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'containsExactly[twitter.com]',
prompt : this.l10n.t('Please enter a valid twitter url')
prompt : this.get('l10n').t('Please enter a valid twitter url')
},
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid url')
prompt : this.get('l10n').t('Please enter a valid url')
}
]
},
Expand All @@ -42,12 +42,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'containsExactly[facebook.com]',
prompt : this.l10n.t('Please enter a valid facebook url')
prompt : this.get('l10n').t('Please enter a valid facebook url')
},
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid url')
prompt : this.get('l10n').t('Please enter a valid url')
}
]
},
Expand All @@ -57,12 +57,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'containsExactly[plus.google.com]',
prompt : this.l10n.t('Please enter a valid google plus url')
prompt : this.get('l10n').t('Please enter a valid google plus url')
},
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid url')
prompt : this.get('l10n').t('Please enter a valid url')
}
]
},
Expand All @@ -72,12 +72,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'containsExactly[youtube.com]',
prompt : this.l10n.t('Please enter a valid youtube url')
prompt : this.get('l10n').t('Please enter a valid youtube url')
},
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid url')
prompt : this.get('l10n').t('Please enter a valid url')
}
]
},
Expand All @@ -87,12 +87,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'containsExactly[github.com]',
prompt : this.l10n.t('Please enter a valid github url')
prompt : this.get('l10n').t('Please enter a valid github url')
},
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid url')
prompt : this.get('l10n').t('Please enter a valid url')
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions app/components/forms/admin/content/translation-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please upload a file')
prompt : this.get('l10n').t('Please upload a file')
},
{
type : 'regExp',
value : '/^(.*.((po)$))?[^.]*$/i',
prompt : this.l10n.t('Please upload a file in suggested format')
prompt : this.get('l10n').t('Please upload a file in suggested format')
}
]
},
Expand All @@ -28,7 +28,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please select a language')
prompt : this.get('l10n').t('Please select a language')
}
]
}
Expand Down
34 changes: 17 additions & 17 deletions app/components/forms/admin/settings/images-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter width')
prompt : this.get('l10n').t('Please enter width')
}
]
},
Expand All @@ -23,7 +23,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter height')
prompt : this.get('l10n').t('Please enter height')
}
]
},
Expand All @@ -32,7 +32,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter quality')
prompt : this.get('l10n').t('Please enter quality')
}
]
},
Expand All @@ -41,7 +41,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter width')
prompt : this.get('l10n').t('Please enter width')
}
]
},
Expand All @@ -50,7 +50,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter height')
prompt : this.get('l10n').t('Please enter height')
}
]
},
Expand All @@ -59,7 +59,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter quality')
prompt : this.get('l10n').t('Please enter quality')
}
]
},
Expand All @@ -68,7 +68,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter width')
prompt : this.get('l10n').t('Please enter width')
}
]
},
Expand All @@ -77,7 +77,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter height')
prompt : this.get('l10n').t('Please enter height')
}
]
},
Expand All @@ -86,7 +86,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter quality')
prompt : this.get('l10n').t('Please enter quality')
}
]
},
Expand All @@ -95,7 +95,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter width')
prompt : this.get('l10n').t('Please enter width')
}
]
},
Expand All @@ -104,7 +104,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter height')
prompt : this.get('l10n').t('Please enter height')
}
]
},
Expand All @@ -113,7 +113,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter size')
prompt : this.get('l10n').t('Please enter size')
}
]
},
Expand All @@ -122,7 +122,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter quality')
prompt : this.get('l10n').t('Please enter quality')
}
]
},
Expand All @@ -131,7 +131,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter size')
prompt : this.get('l10n').t('Please enter size')
}
]
},
Expand All @@ -140,7 +140,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter quality')
prompt : this.get('l10n').t('Please enter quality')
}
]
},
Expand All @@ -149,7 +149,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter size')
prompt : this.get('l10n').t('Please enter size')
}
]
},
Expand All @@ -158,7 +158,7 @@ export default Component.extend(FormMixin, {
rules : [
{
type : 'empty',
prompt : this.l10n.t('Please enter quality')
prompt : this.get('l10n').t('Please enter quality')
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions app/components/forms/admin/settings/microservices-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default Component.extend(FormMixin, {
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid URL for Android app')
prompt : this.get('l10n').t('Please enter a valid URL for Android app')
}
]
},
Expand All @@ -28,7 +28,7 @@ export default Component.extend(FormMixin, {
{
type : 'regExp',
value : protocolLessValidUrlPattern,
prompt : this.l10n.t('Please enter a valid URL for web app')
prompt : this.get('l10n').t('Please enter a valid URL for web app')
}
]
}
Expand Down
Loading

0 comments on commit f246ab4

Please sign in to comment.