diff options
Diffstat (limited to 'app/assets/javascripts/toggles/index.js')
-rw-r--r-- | app/assets/javascripts/toggles/index.js | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/app/assets/javascripts/toggles/index.js b/app/assets/javascripts/toggles/index.js index 5848b3a424c..500fe8c1150 100644 --- a/app/assets/javascripts/toggles/index.js +++ b/app/assets/javascripts/toggles/index.js @@ -17,20 +17,12 @@ export const initToggle = (el) => { return new Vue({ el, - props: { - disabled: { - type: Boolean, - required: false, - default: parseBoolean(disabled), - }, - isLoading: { - type: Boolean, - required: false, - default: parseBoolean(isLoading), - }, - }, + name: 'ToggleFromHtml', + data() { return { + disabled: parseBoolean(disabled), + isLoading: parseBoolean(isLoading), value: parseBoolean(isChecked), }; }, |