diff --git a/src/api/subscriber.js b/src/api/subscriber.js index 9db5c711..32fb9e58 100644 --- a/src/api/subscriber.js +++ b/src/api/subscriber.js @@ -547,3 +547,15 @@ export async function recoverPassword (data) { } return await Vue.http.post('api/passwordrecovery/', payLoad) } + +export async function getBrandingLogo (subscriberId) { + const url = 'api/resellerbrandinglogos/?subscriber_id=' + subscriberId + try { + const res = await Vue.http.get(url, { + responseType: 'blob' + }) + return URL.createObjectURL(res.body) + } catch (err) { + return null + } +} diff --git a/src/components/CscCustomLogo.vue b/src/components/CscCustomLogo.vue new file mode 100644 index 00000000..c27cea36 --- /dev/null +++ b/src/components/CscCustomLogo.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/components/CscLogo.vue b/src/components/CscLogo.vue index 23851c80..8deb3838 100644 --- a/src/components/CscLogo.vue +++ b/src/components/CscLogo.vue @@ -123,9 +123,6 @@ export default { default: 'light' } }, - data () { - return {} - }, computed: { componentClasses () { const classes = ['csc-logo'] diff --git a/src/css/quasar.variables.styl b/src/css/quasar.variables.styl index 398f4061..9b98a504 100644 --- a/src/css/quasar.variables.styl +++ b/src/css/quasar.variables.styl @@ -54,6 +54,9 @@ $header-height-mobile = 60px $logo-margin = $flex-gutter-sm $logo-margin-mobile = $flex-gutter-xs +$logo-min-width = 84px +$logo-max-width = 100px +$logo-max-height = $header-height $csc-label = rgba(0,0,0,0.46) diff --git a/src/layouts/CscLayoutMain.vue b/src/layouts/CscLayoutMain.vue index 6e41b7bb..c419b2e1 100644 --- a/src/layouts/CscLayoutMain.vue +++ b/src/layouts/CscLayoutMain.vue @@ -72,9 +72,15 @@