This commit is contained in:
Douglas Barone 2023-07-04 11:54:53 -04:00
parent 3df3a3f400
commit fec00e6c1f
3 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class PrinterController {
take: 1 take: 1
} }
}, },
orderBy: { network: { cidr: 'asc' } } orderBy: { ip: 'asc' }
}) })
return res.json(printers) return res.json(printers)

View File

@ -33,6 +33,7 @@ onMounted(async () => {
appStore.selectedCampus = appStore.me?.campus || '' appStore.selectedCampus = appStore.me?.campus || ''
}) })
</script> </script>
<style> <style>
.alpha-banner { .alpha-banner {
position: fixed; position: fixed;

View File

@ -15,6 +15,8 @@ export const useAppStore = defineStore('app', {
actions: { actions: {
async fetchPrinters(force = false) { async fetchPrinters(force = false) {
if (!this.me) return []
this.loadingPrinters = true this.loadingPrinters = true
try { try {
this.printers = await api<any[]>( this.printers = await api<any[]>(