Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lsqn committed Oct 7, 2024
1 parent 87f4784 commit dd93a97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/frontend-shared/js/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const notificationTypes = [
'followRequestAccepted',
'roleAssigned',
'achievementEarned',
'noteSchedulingFailed',
'exportCompleted',
'test',
'app',
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/components/MkCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import MkLoading from '@/components/global/MkLoading.vue';
import { i18n } from '@/i18n.js';
import { getDataSaverState } from '@/scripts/datasaver.js';
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
import { defaultStore } from '@/store';
const props = withDefaults(defineProps<{
code: string;
Expand Down
3 changes: 0 additions & 3 deletions packages/frontend/src/pages/admin/moderation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ function save_preservedUsernames() {
// disableVillageMode: !enableVillageMode.value,
disableAccountDelete: !enableAccountDelete.value,
emailRequiredForSignup: emailRequiredForSignup.value,
tosUrl: tosUrl.value,
privacyPolicyUrl: privacyPolicyUrl.value,
inquiryUrl: inquiryUrl.value,
sensitiveWords: sensitiveWords.value.split('\n'),
prohibitedWords: prohibitedWords.value.split('\n'),
hiddenTags: hiddenTags.value.split('\n'),
Expand Down
6 changes: 3 additions & 3 deletions packages/sw/src/scripts/create-notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
}];

case 'noteSchedulingFailed':
return [t('_notification.noteSchedulingFailed'), {
body: t(`_schedulePost.somethingHappened`),
return [i18n.ts._notification.noteSchedulingFailed, {
body: i18n.ts._schedulePost.somethingHappened,
badge: iconUrl('bell'),
data,
}];

case 'exportCompleted': {
const entityName = {
antenna: i18n.ts.antennas,
Expand Down

0 comments on commit dd93a97

Please sign in to comment.