DEV: Use this.site.get("notification_types") instead.
Follow up to fcb7422213.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const NOTIFICATION_TYPES = <%= Notification.types.to_json %>;
|
||||
@@ -1,15 +1,12 @@
|
||||
/*jshint maxlen:10000000 */
|
||||
import {
|
||||
LIKED_CONSOLIDATED_TYPE,
|
||||
REPLIED_TYPE
|
||||
} from "discourse/widgets/concerns/notification-types";
|
||||
import { NOTIFICATION_TYPES } from "fixtures/concerns/notification-types";
|
||||
|
||||
export default {
|
||||
"/notifications": {
|
||||
notifications: [
|
||||
{
|
||||
id: 123,
|
||||
notification_type: REPLIED_TYPE,
|
||||
notification_type: NOTIFICATION_TYPES.replied,
|
||||
read: false,
|
||||
post_number: 2,
|
||||
topic_id: 1234,
|
||||
@@ -18,7 +15,7 @@ export default {
|
||||
},
|
||||
{
|
||||
id: 456,
|
||||
notification_type: LIKED_CONSOLIDATED_TYPE,
|
||||
notification_type: NOTIFICATION_TYPES.liked_consolidated,
|
||||
read: false,
|
||||
data: { display_username: "aquaman", count: "5" }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LIKED_CONSOLIDATED_TYPE } from "discourse/widgets/concerns/notification-types";
|
||||
import { NOTIFICATION_TYPES } from "fixtures/concerns/notification-types";
|
||||
|
||||
export default {
|
||||
"site.json": {
|
||||
@@ -6,21 +6,7 @@ export default {
|
||||
default_archetype: "regular",
|
||||
disabled_plugins: [],
|
||||
shared_drafts_category_id: 24,
|
||||
notification_types: {
|
||||
mentioned: 1,
|
||||
replied: 2,
|
||||
quoted: 3,
|
||||
edited: 4,
|
||||
liked: 5,
|
||||
private_message: 6,
|
||||
invited_to_private_message: 7,
|
||||
invitee_accepted: 8,
|
||||
posted: 9,
|
||||
moved_post: 10,
|
||||
linked: 11,
|
||||
granted_badge: 12,
|
||||
liked_consolidated: LIKED_CONSOLIDATED_TYPE
|
||||
},
|
||||
notification_types: NOTIFICATION_TYPES,
|
||||
post_types: {
|
||||
regular: 1,
|
||||
moderator_action: 2,
|
||||
|
||||
Reference in New Issue
Block a user