Skip to content

Commit

Permalink
feat: Remove MIP-161 feature flags - EXO-76014 - Meeds-io/MIPs#161 (#…
Browse files Browse the repository at this point in the history
…1258)

Remove MIP-161 feature flags
  • Loading branch information
hakermi committed Dec 19, 2024
1 parent 2653cf7 commit 9d5fdc0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 71 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import NotePublicationTargetList from './components/publish-option/NotePublicati
import NoteScheduleOption from './components/schedule-option/NoteScheduleOption.vue';
import NotePublicationAdvancedOption from './components/advanced-option/NotePublicationAdvancedOption.vue';

import * as notesService from '../../javascript/eXo/wiki/notesService.js';

const components = {
'note-publication-drawer': NotePublicationDrawer,
'note-metadata-properties-form': NoteMetadataPropertiesForm,
Expand All @@ -19,3 +21,10 @@ const components = {
for (const key in components) {
Vue.component(key, components[key]);
}


if (!Vue.prototype.$notesService) {
window.Object.defineProperty(Vue.prototype, '$notesService', {
value: notesService,
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,6 @@ export default {
},
isTranslation() {
return !!this.noteObject?.lang;
},
newPublicationDrawerEnabled() {
return eXo?.env?.portal?.newPublicationDrawerEnabled;
}
},
created() {
Expand Down Expand Up @@ -402,15 +399,14 @@ export default {
}
},
postNote() {
if (this.newPublicationDrawerEnabled && this.publicationParams
&& !this.isTranslation && !this.editMode) {
if (this.publicationParams && !this.isTranslation && !this.editMode) {
this.openPublicationDrawer(this.noteObject);
return;
}
this.postAndPublishNote();
},
postAndPublishNote(publicationSettings, note) {
if (this.newPublicationDrawerEnabled && this.publicationParams) {
if (this.publicationParams) {
this.noteObject = note;
this.updateData();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@
:has-featured-image="hasFeaturedImage" />
<note-publication-target-drawer />
<note-publication-drawer
v-if="newPublicationDrawerEnabled"
ref="publicationDrawer"
:has-featured-image="hasFeaturedImage"
:is-publishing="isPublishing"
Expand Down Expand Up @@ -433,9 +432,6 @@ export default {
}
},
computed: {
newPublicationDrawerEnabled() {
return eXo?.env?.portal?.newPublicationDrawerEnabled;
},
extensionParams() {
return {
entityId: this.entityId,
Expand Down

0 comments on commit 9d5fdc0

Please sign in to comment.