psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.51k stars 217 forks source link

Split CSS code for 'new upload' and admin 'refresh' buttons #117

Open greecemunky opened 3 years ago

greecemunky commented 3 years ago

This ensures I can still disable the 'new upload' button (with CSS code you provided previously in https://github.com/psi-4ward/psitransfer/issues/17), while retaining the 'refresh' button found on the admin page.

I've made the following changes on a live system but nothing committed to a code repo, so I don't have anything to push.

https://github.com/psi-4ward/psitransfer/blob/master/public/assets/styles.css From: .btn-new-session { To: .btn-new-session, .btn-admin-refresh {

https://github.com/psi-4ward/psitransfer/blob/master/app/src/Admin.vue From: a.btn.btn-sm.btn-info.btn-new-session(@click='login()', title='Refresh', v-if="loggedIn") To: a.btn.btn-sm.btn-info.btn-admin-refresh(@click='login()', title='Refresh', v-if="loggedIn")

I don't know if other changes need to be made but so far it's working as expected.