Lock possibility of changing scopes when editing in client

This commit is contained in:
Jeder 2023-08-23 15:56:41 +02:00
parent 4fa47bf677
commit 97ca9b9068
2 changed files with 3 additions and 2 deletions

View file

@ -629,6 +629,7 @@ deletedNote: "Deleted post"
invisibleNote: "Invisible post"
enableInfiniteScroll: "Automatically load more"
visibility: "Visiblility"
cannotChangeScopeWhenEditing: "You can't change visibility of this post while editing"
poll: "Poll"
useCw: "Hide content"
enablePlayer: "Open video player"

View file

@ -33,9 +33,9 @@
></span>
<button
ref="visibilityButton"
v-tooltip="i18n.ts.visibility"
v-tooltip="$props.editId != null ? i18n.ts.cannotChangeScopeWhenEditing : i18n.ts.visibility"
class="_button visibility"
:disabled="channel != null"
:disabled="channel != null || $props.editId != null"
@click="setVisibility"
>
<span v-if="visibility === 'public'"