Skip to content

Commit

Permalink
pkp/pkp-lib#10969 Back to have toolbar dynamic based on attachers
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Feb 27, 2025
1 parent 9df55cc commit 219e92a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Composer/Composer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,18 @@ export default {
searchPhrase: '',
searchResults: [],
showSearchResultCount: 10,
toolbar: 'bold italic superscript subscript | link | pkpAttachFiles',
};
},
computed: {
toolbar() {
let baseToolbar = 'bold italic superscript subscript | link ';
if (this.attachers) {
baseToolbar += '| pkpAttachFiles';
}
return baseToolbar;
},
/**
* A getter and setter to allow v-model on a prop
*/
Expand Down

0 comments on commit 219e92a

Please sign in to comment.