File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed
panel/src/components/Views Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 2222 :editor =" editor"
2323 :has-diff =" hasDiff"
2424 :is-locked =" isLocked"
25+ :is-unlockable =" permissions.unlock"
2526 :modified =" modified"
2627 @discard =" onDiscard"
2728 @submit =" onSubmit"
29+ @unlock =" onUnlock"
2830 />
2931 </template >
3032 </k-header >
Original file line number Diff line number Diff line change @@ -95,6 +95,14 @@ export default {
9595
9696 this .$panel .view .refresh ();
9797 },
98+ async onUnlock () {
99+ await this .$panel .content .unlock ({
100+ api: this .api ,
101+ language: this .$panel .language .code
102+ });
103+
104+ this .$panel .view .refresh ();
105+ },
98106 onInput (values ) {
99107 // update the content for the current view
100108 // this will also refresh the content prop
Original file line number Diff line number Diff line change 2222 :editor =" editor"
2323 :has-diff =" hasDiff"
2424 :is-locked =" isLocked"
25+ :is-unlockable =" permissions.unlock"
2526 :modified =" modified"
2627 :preview =" permissions.preview ? api + '/preview/changes' : false"
2728 @discard =" onDiscard"
2829 @submit =" onSubmit"
30+ @unlock =" onUnlock"
2931 />
3032 </template >
3133 </k-header >
Original file line number Diff line number Diff line change 1818 :editor =" editor"
1919 :has-diff =" hasDiff"
2020 :is-locked =" isLocked"
21+ :is-unlockable =" permissions.unlock"
2122 :modified =" modified"
2223 :preview =" permissions.preview ? api + '/preview/changes' : false"
2324 @discard =" onDiscard"
2425 @submit =" onSubmit"
26+ @unlock =" onUnlock"
2527 />
2628 </template >
2729 </k-header >
Original file line number Diff line number Diff line change 2727 :editor =" editor"
2828 :has-diff =" hasDiff"
2929 :is-locked =" isLocked"
30+ :is-unlockable =" permissions.unlock"
3031 :modified =" modified"
3132 @discard =" onDiscard"
3233 @submit =" onSubmit"
34+ @unlock =" onUnlock"
3335 />
3436 </template >
3537 </k-header >
You can’t perform that action at this time.
0 commit comments