@panoramax/web-viewer 5.2.0-develop-a4bfc0fc → 5.2.0-develop-08c7a778
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index_photoviewer.js +4 -4
- package/build/cjs/index_photoviewer.js.map +1 -1
- package/build/esm/components/core/Basic.js +1 -1
- package/build/esm/components/menus/SemanticsMetadata.js +3 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
|
|
|
9
9
|
document.adoptedStyleSheets.push(AtkinsonStyles);
|
|
10
10
|
document.adoptedStyleSheets.push(BasicStyles);
|
|
11
11
|
|
|
12
|
-
const __COMMIT_HASH__ = "
|
|
12
|
+
const __COMMIT_HASH__ = "08c7a77";
|
|
13
13
|
const __PACKAGE_VERSION__ = "5.2.0";
|
|
14
14
|
const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
|
|
15
15
|
|
|
@@ -304,8 +304,9 @@ export default class SemanticsMetadata extends LitElement {
|
|
|
304
304
|
/* eslint-disable eqeqeq */
|
|
305
305
|
if(!this._meta?.properties) { return; }
|
|
306
306
|
|
|
307
|
-
const
|
|
308
|
-
const
|
|
307
|
+
const localApiAllowsEdit = !this._meta.origInstance && this._meta.permissions.edit_semantics;
|
|
308
|
+
const apiAllowsEdit = localApiAllowsEdit || (this._meta.origInstance && this._parent.api._endpoint.startsWith(this._meta.origInstance.href));
|
|
309
|
+
const canEdit = localApiAllowsEdit && (this._authUrl || getUserAccount() !== null);
|
|
309
310
|
|
|
310
311
|
return html`
|
|
311
312
|
${(this._addTag || this._editTag) ? html`
|
package/package.json
CHANGED