mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-30 03:56:04 +00:00
change wording for variable name
This commit is contained in:
parent
52239f7aae
commit
aaacadbabe
@ -200,6 +200,8 @@ export default class DatasetAuthors extends Component {
|
||||
const owners = get(this, 'owners') || [];
|
||||
const { notify } = get(this, 'notifications');
|
||||
|
||||
debugger;
|
||||
|
||||
if (ownerAlreadyExists(owners, { userName: newOwner.userName, source: newOwner.source })) {
|
||||
return void notify(NotificationEvent.info, { content: 'Owner has already been added to "confirmed" list' });
|
||||
}
|
||||
|
@ -7,5 +7,5 @@ export const bannerAnimationSpeed = 0.6;
|
||||
/**
|
||||
* Base message for 2 factor auth banner message for the login screen.
|
||||
*/
|
||||
export const showTwoFABannerMessage =
|
||||
export const twoFABannerMessage =
|
||||
'We have enabled 2-factor authentication. Login now requires your password + Symantec VIP Token.';
|
||||
|
@ -3,7 +3,7 @@ import { computed, get, setProperties, getProperties } from '@ember/object';
|
||||
import ComputedProperty from '@ember/object/computed';
|
||||
import { inject as service } from '@ember/service';
|
||||
import Session from 'ember-simple-auth/services/session';
|
||||
import { showTwoFABannerMessage } from 'wherehows-web/constants/notifications';
|
||||
import { twoFABannerMessage } from 'wherehows-web/constants/notifications';
|
||||
import BannerService from 'wherehows-web/services/banners';
|
||||
import { NotificationEvent } from 'wherehows-web/services/notifications';
|
||||
|
||||
@ -52,7 +52,7 @@ export default class Login extends Controller {
|
||||
|
||||
// Once user has chosen to authenticate, then we remove the login banner (if it exists) since it will
|
||||
// no longer be relevant
|
||||
banners.removeBanner(showTwoFABannerMessage, NotificationEvent['info']);
|
||||
banners.removeBanner(twoFABannerMessage, NotificationEvent['info']);
|
||||
|
||||
get(this, 'session')
|
||||
.authenticate('authenticator:custom-ldap', username, password)
|
||||
|
@ -2,7 +2,7 @@ import Route from '@ember/routing/route';
|
||||
import { get } from '@ember/object';
|
||||
import { run } from '@ember/runloop';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { showTwoFABannerMessage } from 'wherehows-web/constants/notifications';
|
||||
import { twoFABannerMessage } from 'wherehows-web/constants/notifications';
|
||||
|
||||
export default Route.extend({
|
||||
session: service(),
|
||||
@ -59,6 +59,6 @@ export default Route.extend({
|
||||
*/
|
||||
showTwoFABanner() {
|
||||
const banners = get(this, 'banners');
|
||||
banners.addBanner(showTwoFABannerMessage, 'info');
|
||||
banners.addBanner(twoFABannerMessage, 'info');
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user