mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Shorter copies
This commit is contained in:
parent
74a02ee388
commit
4dae1d1576
5 changed files with 7 additions and 16 deletions
|
@ -311,8 +311,8 @@ function Account({ account, instance: propInstance, onClose }) {
|
|||
if (following || requested) {
|
||||
const yes = confirm(
|
||||
requested
|
||||
? 'Are you sure that you want to withdraw follow request?'
|
||||
: 'Are you sure that you want to unfollow this account?',
|
||||
? 'Withdraw follow request?'
|
||||
: `Unfollow @${info.acct || info.username}?`,
|
||||
);
|
||||
if (yes) {
|
||||
newRelationship =
|
||||
|
|
|
@ -264,8 +264,7 @@ function Compose({
|
|||
|
||||
const formRef = useRef();
|
||||
|
||||
const beforeUnloadCopy =
|
||||
'You have unsaved changes. Are you sure you want to discard this post?';
|
||||
const beforeUnloadCopy = 'You have unsaved changes. Discard this post?';
|
||||
const canClose = () => {
|
||||
const { value, dataset } = textareaRef.current;
|
||||
|
||||
|
|
|
@ -103,9 +103,7 @@ function Drafts() {
|
|||
onClick={() => {
|
||||
(async () => {
|
||||
try {
|
||||
const yes = confirm(
|
||||
'Are you sure you want to delete this draft?',
|
||||
);
|
||||
const yes = confirm('Delete this draft?');
|
||||
if (yes) {
|
||||
await db.drafts.del(key);
|
||||
reload();
|
||||
|
@ -161,9 +159,7 @@ function Drafts() {
|
|||
disabled={uiState === 'loading'}
|
||||
onClick={() => {
|
||||
(async () => {
|
||||
const yes = confirm(
|
||||
'Are you sure you want to delete all drafts?',
|
||||
);
|
||||
const yes = confirm('Delete all drafts?');
|
||||
if (yes) {
|
||||
setUIState('loading');
|
||||
try {
|
||||
|
|
|
@ -531,9 +531,7 @@ function Status({
|
|||
}
|
||||
try {
|
||||
if (!reblogged) {
|
||||
const yes = confirm(
|
||||
'Are you sure that you want to boost this post?',
|
||||
);
|
||||
const yes = confirm('Boost this post?');
|
||||
if (!yes) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -125,9 +125,7 @@ function Settings({ onClose }) {
|
|||
<MenuItem
|
||||
disabled={!isCurrent}
|
||||
onClick={() => {
|
||||
const yes = confirm(
|
||||
'Are you sure you want to log out?',
|
||||
);
|
||||
const yes = confirm('Log out?');
|
||||
if (!yes) return;
|
||||
accounts.splice(i, 1);
|
||||
store.local.setJSON('accounts', accounts);
|
||||
|
|
Loading…
Reference in a new issue