Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Simplify instructions with DependsOnPermissions.

Lauryn Menard0c301102ca4e
diff --git a/starlight_help/src/content/docs/delete-a-message.mdx b/starlight_help/src/content/docs/delete-a-message.mdx
index a255b1f743d..7ad55d2cc0f 100644
--- a/starlight_help/src/content/docs/delete-a-message.mdx
+++ b/starlight_help/src/content/docs/delete-a-message.mdx
@@ -6,6 +6,7 @@ import {TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro";
import ZulipTip from "../../components/ZulipTip.astro";
+import DependsOnPermissions from "../include/_DependsOnPermissions.mdx";
import MessageActions from "../include/_MessageActions.mdx";
import MessageActionsMenu from "../include/_MessageActionsMenu.mdx";
import MessageLongPressMenu from "../include/_MessageLongPressMenu.mdx";
@@ -30,14 +31,14 @@ Zulip's [edit history](/help/view-a-messages-edit-history) feature. This can be
the best option for avoiding confusion if other users have already responded to
your message.
+<DependsOnPermissions />
+
<Tabs>
<TabItem label="Desktop/Web">
<FlattenedSteps>
<MessageActions />
- 1. Click the **pencil** (<EditIcon />) icon. If you do not see
- the **pencil** (<EditIcon />) icon, you do not have
- permission to delete the content of this message.
+ 1. Click the **pencil** (<EditIcon />) icon.
1. Delete the content of the message.
1. Click **Save**.
</FlattenedSteps>
@@ -47,8 +48,7 @@ your message.
<FlattenedSteps>
<MessageLongPressMenu />
- 1. Tap **Edit message**. If you do not see the **Edit message** option,
- you do not have permission to change the content of this message.
+ 1. Tap **Edit message**.
1. Delete the content of the message.
1. Tap **Save**.
</FlattenedSteps>
@@ -73,13 +73,14 @@ accidentally shared secret information that you can change, like a
password, you may want to change that password regardless of whether
you also delete the message.
+<DependsOnPermissions />
+
<Tabs>
<TabItem label="Desktop/Web">
<FlattenedSteps>
<MessageActionsMenu />
- 1. Select **Delete message**. If you do not see the **Delete message** option,
- you do not have permission to delete this message completely.
+ 1. Select **Delete message**.
1. Approve by clicking **Confirm**.
</FlattenedSteps>
</TabItem>
@@ -88,8 +89,7 @@ you also delete the message.
<FlattenedSteps>
<MessageLongPressMenu />
- 1. Tap **Delete message**. If you do not see the **Delete message** option,
- you do not have permission to delete this message completely.
+ 1. Tap **Delete message**.
1. Approve by tapping **Delete**.
</FlattenedSteps>
</TabItem>
diff --git a/starlight_help/src/content/docs/edit-a-message.mdx b/starlight_help/src/content/docs/edit-a-message.mdx
index cc11b11f2ed..caa390f22a5 100644
--- a/starlight_help/src/content/docs/edit-a-message.mdx
+++ b/starlight_help/src/content/docs/edit-a-message.mdx
@@ -6,6 +6,7 @@ import {TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro";
import ZulipTip from "../../components/ZulipTip.astro";
+import DependsOnPermissions from "../include/_DependsOnPermissions.mdx";
import MessageActions from "../include/_MessageActions.mdx";
import MessageLongPressMenu from "../include/_MessageLongPressMenu.mdx";
@@ -23,14 +24,14 @@ edit the content of a message sent by another user.
## Edit a message
+<DependsOnPermissions />
+
<Tabs>
<TabItem label="Desktop/Web">
<FlattenedSteps>
<MessageActions />
- 1. Click the **pencil** (<EditIcon />) icon. If you do not see
- the **pencil** (<EditIcon />) icon, you do not have
- permission to edit this message.
+ 1. Click the **pencil** (<EditIcon />) icon.
1. Edit the content of the message.
1. Click **Save**.
</FlattenedSteps>
@@ -40,8 +41,7 @@ edit the content of a message sent by another user.
<FlattenedSteps>
<MessageLongPressMenu />
- 1. Tap **Edit message**. If you do not see the **Edit message** option, you do
- not have permission to edit this message.
+ 1. Tap **Edit message**.
1. Edit the content of the message.
1. Tap **Save**.
</FlattenedSteps>
diff --git a/starlight_help/src/content/docs/rename-a-topic.mdx b/starlight_help/src/content/docs/rename-a-topic.mdx
index afb5d92b689..92d90c876ee 100644
--- a/starlight_help/src/content/docs/rename-a-topic.mdx
+++ b/starlight_help/src/content/docs/rename-a-topic.mdx
@@ -5,6 +5,7 @@ title: Rename a topic
import {Steps, TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro";
+import DependsOnPermissions from "../include/_DependsOnPermissions.mdx";
import TopicActions from "../include/_TopicActions.mdx";
import CheckIcon from "~icons/zulip-icon/check";
@@ -27,13 +28,12 @@ is allowed to rename topics.
## Rename a topic
+<DependsOnPermissions />
+
<Tabs>
<TabItem label="Via message recipient bar">
<Steps>
- 1. Click the **edit topic** (<PencilIcon />) icon in
- the message recipient bar. If you do not see the
- **edit topic** (<PencilIcon />) icon, you do not
- have permission to rename this topic.
+ 1. Click the **edit topic** (<PencilIcon />) icon in the message recipient bar.
1. Edit the topic name.
1. Click the **save** (<CheckIcon />) icon
to save your changes.
@@ -44,8 +44,7 @@ is allowed to rename topics.
<FlattenedSteps>
<TopicActions />
- 1. Select **Move topic** or **Rename topic**. If you do not see either option,
- you do not have permission to rename this topic.
+ 1. Select **Move topic** or **Rename topic**.
1. Edit the topic name.
1. *(optional)* If using the **Move topic** menu, select the destination channel
for the topic from the channels dropdown list.