Fixes#10708 by removing the `inert` attribute on `#mainWrapper` when `editorService.closeAll()` is called.
This code is necessary because when close all is called, there is no editor passed, and so `removeEditor` is never called, and so the `focusLockService.removeInertAttribute();` method isn't called. I add to the if block that handles the close all code instead.
* Add missing focus styling
* Fix issue where validation message does not disappear when all chars are removed
Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
We added an overload that would conflict for people with existing templates, that was a bit too premature. Disabled for now with a note to look into it for v9 again.
* Support for language of parts
* Changed casing of "FallBack" to "Fallback" to be consistent with the existing code.
* Now tests the type to determine if span should be added.
* Remove magic strings and return <div> for IHtmlString values
This fixes the "string" vs "String" issue in the previous commit and prevents the function returning invalid markup
* Fix for test providing string as "object"
Co-authored-by: Joe Glombek <joe@rockdove.uk>
* Add missing focus styling
* Change width to ensure label does not get too wide
Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
The logic in the markup was previously incorrect.
I changed the check from `tab.length` to `dashboard.length`.
The custom dashboard's label isn't `.caption` and it's per dashboard,
not per "property".
Lastly, `.path` should be `.view`.
Resolves#6417
* Enabling configuration of remote URL for fetching content on the content dashboard and adding additional params indicating whether solution is running on Umbraco Cloud
* Determining if Umbraco is running on Umbraco Cloud by checking whether Umbraco.Deploy.Cloud.dll is present and making its value more accessible for other contexts. Passing a hosting parameter as string instead of boolean
* Changing from Unknown to OnPremises
* Updated content dashboard to use hard-coded URL but path derived from configuration.
Co-authored-by: Andy Butland <abutland73@gmail.com>
(cherry picked from commit 917c89cde7)
* Reducing the large amount of objects allocated and make use of the attemped dictionary cache
* Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted and adding faster way to lookup value editors
(cherry picked from commit 897cb11f00)
* Find the old property by alias instead of by indexes as if you move around properties in the EditorModel events Rollback breaks.
* optimise property lookup - avoids iterating entire property set
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>