UX: Welten-Editor — Hinweis dass ✕ ausblendet (nicht löscht)
Statischer Hinweis präzisiert + Toast beim ersten Ausblenden: Funktion bleibt über 'Weitere Funktionen' (Ausgeblendete Funktionen) abrufbar, wird nicht gelöscht. SW v1173
This commit is contained in:
parent
258ccf84ee
commit
1448782564
6 changed files with 27 additions and 18 deletions
|
|
@ -713,6 +713,7 @@ window.Worlds = (() => {
|
|||
function _openConfigModal() {
|
||||
let cfg = JSON.parse(JSON.stringify(_getConfig())); // deep copy
|
||||
let _drag = null; // { page, fromWorld, ghost }
|
||||
let _removeHintShown = false; // „ausblenden ≠ löschen"-Toast nur einmal pro Session
|
||||
|
||||
const isAdmin = _state?.user?.rolle === 'admin';
|
||||
const worldColors = { jetzt:'rgba(196,132,58,0.6)', hund:'rgba(196,132,58,0.8)', welt:'rgba(99,130,220,0.6)' };
|
||||
|
|
@ -774,7 +775,8 @@ window.Worlds = (() => {
|
|||
<!-- Hinweis + Reset -->
|
||||
<div style="padding:10px 20px 6px;display:flex;align-items:center;justify-content:space-between;gap:12px">
|
||||
<div style="font-size:var(--text-xs);color:rgba(255,255,255,0.4);flex:1">
|
||||
Lang drücken & ziehen zum Verschieben. ✕ zum Entfernen.
|
||||
Lang drücken & ziehen zum Verschieben. ✕ blendet aus (löscht nicht) —
|
||||
ausgeblendete Funktionen bleiben über „Weitere Funktionen" abrufbar.
|
||||
</div>
|
||||
<button id="wc-reset" style="background:none;border:1px solid rgba(255,255,255,0.2);
|
||||
color:rgba(255,255,255,0.5);border-radius:999px;padding:5px 12px;
|
||||
|
|
@ -869,7 +871,14 @@ window.Worlds = (() => {
|
|||
const page = btn.dataset.page, zone = btn.dataset.zone;
|
||||
const meta = _chipMeta(page);
|
||||
if (meta?.pinned) return; // gepinnte Chips können nicht entfernt werden
|
||||
if (zone !== 'pool') cfg[zone] = cfg[zone].filter(p => p !== page);
|
||||
if (zone !== 'pool') {
|
||||
cfg[zone] = cfg[zone].filter(p => p !== page);
|
||||
// Klarstellen: ausblenden ≠ löschen (einmal pro Session)
|
||||
if (!_removeHintShown) {
|
||||
_removeHintShown = true;
|
||||
UI.toast?.info('Ausgeblendet, nicht gelöscht — über „Weitere Funktionen" jederzeit wieder einblendbar.');
|
||||
}
|
||||
}
|
||||
_render();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue