diff --git a/public/openapi/read/admin/appearance/themes.yaml b/public/openapi/read/admin/appearance/themes.yaml index d2b2eabb68..d9e5b0e602 100644 --- a/public/openapi/read/admin/appearance/themes.yaml +++ b/public/openapi/read/admin/appearance/themes.yaml @@ -8,4 +8,34 @@ get: content: application/json: schema: - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps \ No newline at end of file + allOf: + - type: object + properties: + themes: + type: array + items: + type: object + properties: + name: + type: string + id: + type: string + description: + type: string + screenshot: + type: string + screenshot_url: + type: string + type: + type: string + url: + type: string + baseTheme: + type: string + required: + - name + - id + - description + - type + - url + - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps diff --git a/public/src/admin/appearance/themes.js b/public/src/admin/appearance/themes.js index f2a023206f..2fe0022c77 100644 --- a/public/src/admin/appearance/themes.js +++ b/public/src/admin/appearance/themes.js @@ -72,24 +72,7 @@ define('admin/appearance/themes', ['bootbox', 'translator', 'alerts'], function }); }); - socket.emit('admin.themes.getInstalled', function (err, themes) { - if (err) { - return alerts.error(err); - } - - const instListEl = $('#installed_themes'); - - if (!themes.length) { - instListEl.append($('