[ui] Fix: New toast notifications no longer last forever (#16384)
* Removes an errant console.log and corrects a default sticky=true on toast notifications * Default so no need to refault
This commit is contained in:
parent
35c17b2e56
commit
b0124ee683
|
@ -74,7 +74,7 @@ export default class PoliciesPolicyController extends Controller {
|
|||
});
|
||||
yield newToken.save();
|
||||
yield this.refreshTokens();
|
||||
const thing = this.notifications.add({
|
||||
this.notifications.add({
|
||||
title: 'Example Token Created',
|
||||
message: `${newToken.secret}`,
|
||||
color: 'success',
|
||||
|
@ -86,7 +86,6 @@ export default class PoliciesPolicyController extends Controller {
|
|||
},
|
||||
},
|
||||
});
|
||||
console.log('thing', thing);
|
||||
} catch (err) {
|
||||
this.error = {
|
||||
title: 'Error creating new token',
|
||||
|
|
|
@ -28,10 +28,6 @@ export default class NotificationsService extends FlashService {
|
|||
notificationObject.type = notificationObject.color || 'neutral';
|
||||
}
|
||||
|
||||
if (!('sticky' in notificationObject)) {
|
||||
notificationObject.sticky = true;
|
||||
}
|
||||
|
||||
if (!('destroyOnClick' in notificationObject)) {
|
||||
notificationObject.destroyOnClick = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue