Showing
2 changed files
with
17 additions
and
16 deletions
... | ... | @@ -4290,7 +4290,7 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
4290 | 4290 | async function getRemoteData() { |
4291 | 4291 | const { doGetConfigurationContent } = useContentData() |
4292 | 4292 | const { getAuthInfo } = useAuth?.() || {} |
4293 | - | |
4293 | + | |
4294 | 4294 | const platformInfo = getPlatformInfo() |
4295 | 4295 | document.getElementById('first-text-animation-text').querySelector('text').innerHTML = platformInfo?.name || window.PROJECT_ENV?.shortName |
4296 | 4296 | document.getElementById('first-text-animation').style.display = 'block' |
... | ... | @@ -4313,26 +4313,28 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
4313 | 4313 | * @property {ConfigurationContentListItemType[]} configurationContentList |
4314 | 4314 | */ |
4315 | 4315 | |
4316 | - /** | |
4317 | - * @typedef PermissionInfo | |
4318 | - * @property {string[]} permissions | |
4319 | - * @property {string} hasPreview | |
4320 | - * @property {string} platform | |
4321 | - * @property {ConfigurationContentListItemType[]} configurationContentList | |
4322 | - */ | |
4323 | - | |
4324 | - /** | |
4325 | - * @type {PermissionInfo} | |
4326 | - */ | |
4327 | - const permissionInfo = await getAuthInfo?.() || {} | |
4328 | - | |
4329 | - this.permissionInfo = permissionInfo | |
4316 | + /** | |
4317 | + * @typedef PermissionInfo | |
4318 | + * @property {string[]} permissions | |
4319 | + * @property {string} hasPreview | |
4320 | + * @property {string} platform | |
4321 | + * @property {ConfigurationContentListItemType[]} configurationContentList | |
4322 | + */ | |
4330 | 4323 | |
4331 | 4324 | /** |
4332 | 4325 | * @type {ConfigurationContentType} |
4333 | 4326 | */ |
4334 | 4327 | const result = await doGetConfigurationContent() |
4335 | 4328 | const { configurationContentList, configurationId, configurationName, platform, isTemplate } = result |
4329 | + | |
4330 | + | |
4331 | + /** | |
4332 | + * @type {PermissionInfo} | |
4333 | + */ | |
4334 | + const permissionInfo = await getAuthInfo?.() || {} | |
4335 | + | |
4336 | + this.permissionInfo = permissionInfo | |
4337 | + | |
4336 | 4338 | const firstContent = configurationContentList?.[0] |
4337 | 4339 | this.configurationContentId = firstContent?.id |
4338 | 4340 | this.isTemplateConfiguration = !!isTemplate | ... | ... |