diff --git a/plugins/demo/js/editordemo.js b/plugins/demo/js/editordemo.js index 9c4c89e..8b52b83 100644 --- a/plugins/demo/js/editordemo.js +++ b/plugins/demo/js/editordemo.js @@ -26,7 +26,11 @@ app.component('tab-demo', {
-
{{ $filters.translate(message) }}
+
+ +
{{ $filters.translate(message) }}
+
+
diff --git a/system/typemill/Controllers/ControllerApiSystemUsers.php b/system/typemill/Controllers/ControllerApiSystemUsers.php index 74af474..8eeb92f 100644 --- a/system/typemill/Controllers/ControllerApiSystemUsers.php +++ b/system/typemill/Controllers/ControllerApiSystemUsers.php @@ -7,6 +7,7 @@ use Psr\Http\Message\ResponseInterface as Response; use Typemill\Models\Validation; use Typemill\Models\User; use Typemill\Static\Translations; +use Typemill\Static\Session; class ControllerApiSystemUsers extends Controller { @@ -351,13 +352,13 @@ class ControllerApiSystemUsers extends Controller return $response->withHeader('Content-Type', 'application/json')->withStatus(500); } -/* + # if user deleted his own account if(isset($_SESSION['user']) && $_SESSION['user'] == $username) { - session_destroy(); + Session::stopSession(); } -*/ + $response->getBody()->write(json_encode([ 'message' => Translations::translate('User deleted.'), ])); diff --git a/system/typemill/author/js/vue-meta.js b/system/typemill/author/js/vue-meta.js index 6236845..4caa1ce 100644 --- a/system/typemill/author/js/vue-meta.js +++ b/system/typemill/author/js/vue-meta.js @@ -119,6 +119,8 @@ const app = Vue.createApp({ saveForm: function() { this.saved = false; + self.message = false; + self.messageClass = 'bg-stone-50'; self = this; tmaxios.post('/api/v1/meta',{ @@ -221,7 +223,11 @@ app.component('tab-meta', {
-
{{ $filters.translate(message) }}
+
+ +
{{ $filters.translate(message) }}
+
+
@@ -229,6 +235,7 @@ app.component('tab-meta', { mounted: function() { if(this.item.slug != '') + { this.slug = this.item.slug; this.originalSlug = this.item.slug; diff --git a/system/typemill/author/partials/flash.twig b/system/typemill/author/partials/flash.twig index 654d188..992596d 100644 --- a/system/typemill/author/partials/flash.twig +++ b/system/typemill/author/partials/flash.twig @@ -1,6 +1,6 @@ {% if flash.info %} -
+
{{ flash.info | first }}
diff --git a/system/typemill/author/system/plugins.twig b/system/typemill/author/system/plugins.twig index 648d4f7..abb4fa7 100644 --- a/system/typemill/author/system/plugins.twig +++ b/system/typemill/author/system/plugins.twig @@ -2,8 +2,13 @@ {% block title %}{{ translate('Plugin Settings') }}{% endblock %} {% block content %} - -

{{ translate('Plugins') }}

+ +
+

{{ translate('Plugins') }}

+ +
diff --git a/system/typemill/author/system/themes.twig b/system/typemill/author/system/themes.twig index 6a919c1..189aa49 100644 --- a/system/typemill/author/system/themes.twig +++ b/system/typemill/author/system/themes.twig @@ -3,7 +3,12 @@ {% block content %} -

{{ translate('Themes') }}

+
+

{{ translate('Themes') }}

+ +