Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/views/notifyPopupView.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class NotifyPopupView extends Backbone.View {

async addSubView() {
this.subView = this.model.get('_view');
if (this.model.get('_id')) {
if (this.model.get('_shouldRenderId') && this.model.get('_id')) {
// Automatically render the specified id
const model = data.findById(this.model.get('_id'));
const View = components.getViewClass(model);
Expand Down
3 changes: 2 additions & 1 deletion js/views/notifyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class NotifyView extends Backbone.View {
get stack() {
return this._stack;
}

get isOpen() {
return (this.stack.length > 0);
}
Expand All @@ -44,6 +44,7 @@ export default class NotifyView extends Backbone.View {
create(notifyObject, defaults) {
notifyObject = _.defaults({}, notifyObject, defaults, {
_type: 'popup',
_shouldRenderId: false,
_isCancellable: true,
_showCloseButton: true,
_closeOnShadowClick: true
Expand Down