diff --git a/src/web/app/desktop/tags/home-widgets/activity.tag b/src/web/app/desktop/tags/home-widgets/activity.tag index ecb18992b8..255f6442e0 100644 --- a/src/web/app/desktop/tags/home-widgets/activity.tag +++ b/src/web/app/desktop/tags/home-widgets/activity.tag @@ -1,6 +1,8 @@ -

%i18n:desktop.tags.mk-activity-home-widget.title%

- + +

%i18n:desktop.tags.mk-activity-home-widget.title%

+ +

%i18n:common.loading%

@@ -51,7 +53,8 @@
diff --git a/src/web/app/desktop/tags/home-widgets/notifications.tag b/src/web/app/desktop/tags/home-widgets/notifications.tag index b1170855ac..b068350de6 100644 --- a/src/web/app/desktop/tags/home-widgets/notifications.tag +++ b/src/web/app/desktop/tags/home-widgets/notifications.tag @@ -1,6 +1,8 @@ -

%i18n:desktop.tags.mk-notifications-home-widget.title%

- + +

%i18n:desktop.tags.mk-notifications-home-widget.title%

+ +
diff --git a/src/web/app/desktop/tags/home-widgets/photo-stream.tag b/src/web/app/desktop/tags/home-widgets/photo-stream.tag index d1f29589f3..7f8dd8563a 100644 --- a/src/web/app/desktop/tags/home-widgets/photo-stream.tag +++ b/src/web/app/desktop/tags/home-widgets/photo-stream.tag @@ -1,5 +1,7 @@ -

%i18n:desktop.tags.mk-photo-stream-home-widget.title%

+ +

%i18n:desktop.tags.mk-photo-stream-home-widget.title%

+

%i18n:common.loading%

0 }> @@ -55,8 +57,11 @@ diff --git a/src/web/app/desktop/tags/home-widgets/server.tag b/src/web/app/desktop/tags/home-widgets/server.tag index 5fcaa9b7dd..b2e3b9d904 100644 --- a/src/web/app/desktop/tags/home-widgets/server.tag +++ b/src/web/app/desktop/tags/home-widgets/server.tag @@ -1,6 +1,8 @@ -

%i18n:desktop.tags.mk-server-home-widget.title%

- + +

%i18n:desktop.tags.mk-server-home-widget.title%

+ +

%i18n:common.loading%

@@ -57,7 +59,8 @@ import Connection from '../../../common/scripts/server-stream'; this.data = { - view: 0 + view: 0, + compact: false }; this.mixin('widget'); @@ -85,6 +88,11 @@ // Save widget state this.save(); }; + + this.func = () => { + this.data.compact = !this.data.compact; + this.save(); + };
diff --git a/src/web/app/desktop/tags/home-widgets/user-recommendation.tag b/src/web/app/desktop/tags/home-widgets/user-recommendation.tag index f78d7944f1..bb6f7c4116 100644 --- a/src/web/app/desktop/tags/home-widgets/user-recommendation.tag +++ b/src/web/app/desktop/tags/home-widgets/user-recommendation.tag @@ -1,6 +1,8 @@ -

%i18n:desktop.tags.mk-user-recommendation-home-widget.title%

- + +

%i18n:desktop.tags.mk-user-recommendation-home-widget.title%

+ +
@@ -213,11 +215,22 @@ break; } - this.home.push(riot.mount(el, { + const tag = riot.mount(el, { id: widget.id, data: widget.data, tl: this.refs.tl - })[0]); + })[0]; + + this.home.push(tag); + + if (this.opts.customize) { + actualEl.oncontextmenu = e => { + e.preventDefault(); + e.stopImmediatePropagation(); + if (tag.func) tag.func(); + return false; + }; + } }; this.addWidget = () => {