mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Lock possibility of changing scopes when editing in client
This commit is contained in:
parent
4fa47bf677
commit
97ca9b9068
@ -629,6 +629,7 @@ deletedNote: "Deleted post"
|
|||||||
invisibleNote: "Invisible post"
|
invisibleNote: "Invisible post"
|
||||||
enableInfiniteScroll: "Automatically load more"
|
enableInfiniteScroll: "Automatically load more"
|
||||||
visibility: "Visiblility"
|
visibility: "Visiblility"
|
||||||
|
cannotChangeScopeWhenEditing: "You can't change visibility of this post while editing"
|
||||||
poll: "Poll"
|
poll: "Poll"
|
||||||
useCw: "Hide content"
|
useCw: "Hide content"
|
||||||
enablePlayer: "Open video player"
|
enablePlayer: "Open video player"
|
||||||
|
@ -33,9 +33,9 @@
|
|||||||
></span>
|
></span>
|
||||||
<button
|
<button
|
||||||
ref="visibilityButton"
|
ref="visibilityButton"
|
||||||
v-tooltip="i18n.ts.visibility"
|
v-tooltip="$props.editId != null ? i18n.ts.cannotChangeScopeWhenEditing : i18n.ts.visibility"
|
||||||
class="_button visibility"
|
class="_button visibility"
|
||||||
:disabled="channel != null"
|
:disabled="channel != null || $props.editId != null"
|
||||||
@click="setVisibility"
|
@click="setVisibility"
|
||||||
>
|
>
|
||||||
<span v-if="visibility === 'public'"
|
<span v-if="visibility === 'public'"
|
||||||
|
Loading…
Reference in New Issue
Block a user