Commit 26071d5c authored by schneider210's avatar schneider210
Browse files

refactor: delete legacy code (standalone) as agreed upon in today's refinement

parent 56338a55
Pipeline #223505 passed with stages
in 5 minutes and 17 seconds
......@@ -294,8 +294,7 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
"toggle": true
}
],
"rtl": false,
"standalone": true
"rtl": false
} </script>
```
......@@ -467,12 +466,6 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
Defaults to `false`
- **standalone**
denotes if the Viewer will be used as a single page application or if it will be embedded into an existing page. If you want to use it in the latter case, please toggle the value to `false`. That way the language toggle in the footer section will not show up.
Defaults to `true`
### Configure the Panels
```json
......
......@@ -15,7 +15,6 @@
:manifests="manifests"
:panels="panels"
:projectcolors="config.colors"
:standalone="config.standalone"
/>
<q-page-container class="root">
......
......@@ -8,7 +8,8 @@
class="row justify-center items-center"
reveal
>
<Language v-if="standalone" />
<Language v-if="config['language-switch']" />
<Color :projectcolors="projectcolors" />
<Softwareinfo />
</div>
......@@ -29,11 +30,15 @@ export default {
Softwareinfo,
},
props: {
config: {
type: Object,
default: () => {},
},
projectcolors: {
type: Object,
default: () => {},
},
standalone: Boolean,
},
};
</script>
......
......@@ -23,7 +23,6 @@
<Tools
:config="config"
:projectcolors="projectcolors"
:standalone="standalone"
/>
</q-toolbar>
......@@ -50,7 +49,6 @@
<Tools
:config="config"
:projectcolors="projectcolors"
:standalone="standalone"
/>
</div>
</q-toolbar>
......@@ -112,7 +110,6 @@ export default {
type: Object,
default: () => {},
},
standalone: Boolean,
},
};
</script>
......
<template>
<div class="row no-wrap justify-end col-xs-3">
<Language
v-if="standalone && config['language-switch']"
v-if="config['language-switch']"
:config="config"
/>
......@@ -32,7 +32,6 @@ export default {
type: Object,
default: () => {},
},
standalone: Boolean,
},
};
</script>
......@@ -126,8 +126,7 @@
"toggle": true
}
],
"rtl": false,
"standalone": true
"rtl": false
}
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment