10000 Bugfix v4: Structure mode toggle button disappearing from toolbar by fsbraun · Pull Request #7272 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

Bugfix v4: Structure mode toggle button disappearing from toolbar #7272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 25, 2022
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c4fae50
Actions: run gulp build
fsbraun Mar 23, 2022
0151b22
Add console.log
fsbraun Mar 23, 2022
6075489
Add: github actions artifacts and see if it runs with node 10
fsbraun Mar 23, 2022
35735a9
Fix: missing comma in yaml
fsbraun Mar 23, 2022
0281288
Back to node@6
fsbraun Mar 23, 2022
05a8d8e
Merge branch 'django-cms:develop-4' into develop-4
fsbraun Mar 23, 2022
9421e08
Fix: Structure board button disappearing after changing a page's con…
fsbraun Mar 23, 2022
d7cb809
Fix: Undo other debug changes
fsbraun Mar 23, 2022
1a8d642
Fix: Re-add cms_path to toolbar url
fsbraun Mar 23, 2022
a6390d5
Fix: Broken test
fsbraun Mar 23, 2022
b405c94
Fix: lint errors
fsbraun Mar 23, 2022
6078f40
Fix: Improved responisveness by saving an unecessary xhr call for th…
fsbraun Mar 23, 2022
385e38a
Tribute to eslint
fsbraun Mar 23, 2022
8cd900e
Fix: get_toolbar xhr call needs to resolve to the cms_path not the r…
fsbraun Mar 23, 2022
2bc18ac
Add: Test for invalid toolbar resolver path
fsbraun Mar 24, 2022
c106f59
Change: Buggy Helpers.updateUrlWithPath. Works fine as long as only …
fsbraun Mar 24, 2022
7da41c7
Fix: toolbar py test
fsbraun Mar 25, 2022
12e09d5
Merge branch 'develop-4' into develop-4
Aiky30 May 18, 2022
966fe39
Update cms/static/cms/js/modules/cms.structureboard.js
fsbraun May 18, 2022
3bc9808
Update cms/static/cms/js/modules/cms.toolbar.js
fsbraun May 18, 2022
330d333
Update cms/tests/test_toolbar.py
fsbraun May 18, 2022
0ed88e1
Update cms.base.js
fsbraun May 18, 2022
760d4bb
Update cms.base.js
fsbraun May 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: Improved responisveness by saving an unecessary xhr call for the…
… toolbar to the backend
  • Loading branch information
fsbraun committed Mar 23, 2022
commit 6078f401c98e263ccfb8bb883aee448872105d0d
26 changes: 13 additions & 13 deletions cms/static/cms/js/modules/cms.structureboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,26 +997,26 @@ class StructureBoard {
// refresh toolbar
var currentMode = CMS.settings.mode;

this._loadToolbar()
.done(newToolbar => {
CMS.API.Toolbar._refreshMarkup($(newToolbar).find('.cms-toolbar'));
})
.fail(() => Helpers.reloadBrowser());

if (currentMode === 'structure') {
this._requestcontent = null;

if (this._loadedContent && action !== 'COPY') {
this.updateContent();
return; // Toolbar loaded
}
} else {
// invalidate the content mode
if (action !== 'COPY') {
this._requestcontent = null;
this.updateContent();
return; // Toolbar loaded
}
return;
}

// invalidate the content mode
if (action !== 'COPY') {
this._requestcontent = null;
this.updateContent();
}
this._loadToolbar()
.done(newToolbar => {
CMS.API.Toolbar._refreshMarkup($(newToolbar).find('.cms-toolbar'));
})
.fail(() => Helpers.reloadBrowser());
}

_propagateInvalidatedState(action, data) {
Expand Down
0