Move some knockoutjs bindings, extenders and functions to Admin and User specific areas

This commit is contained in:
djmaze 2020-09-17 00:02:35 +02:00
parent 95e88af017
commit 9c18126843
8 changed files with 368 additions and 344 deletions

View file

@ -45,6 +45,12 @@ import { AbstractViewNext } from 'Knoin/AbstractViewNext';
const Settings = rl.settings;
ko.extenders.toggleSubscribe = (target, options) => {
target.subscribe(options[1], options[0], 'beforeChange');
target.subscribe(options[2], options[0]);
return target;
};
@popup({
name: 'View/Popup/Compose',
templateID: 'PopupsCompose'