mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 09:22:30 -05:00
[PR #3167] [MERGED] Fix Javascript issue on non sqlite databases #30849
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3167
Author: @BlackDex
Created: 1/24/2023
Status: ✅ Merged
Merged: 2/12/2023
Merged by: @dani-garcia
Base:
main← Head:issue-3166📝 Commits (2)
c9ed9aaFix Javascript issue on non sqlite databasesbc49d1fMerge branch 'main' into issue-3166📊 Changes
10 files changed (+190 additions, -108 deletions)
View changed files
📝
src/api/web.rs(+2 -2)📝
src/static/scripts/admin.css(+14 -7)📝
src/static/scripts/admin.js(+19 -7)📝
src/static/scripts/admin_diagnostics.js(+15 -7)📝
src/static/scripts/admin_organizations.js(+21 -5)📝
src/static/scripts/admin_settings.js(+40 -25)📝
src/static/scripts/admin_users.js(+58 -33)📝
src/static/scripts/jquery-3.6.3.slim.js(+8 -9)📝
src/static/templates/admin/organizations.hbs(+6 -6)📝
src/static/templates/admin/users.hbs(+7 -7)📄 Description
When a non sqlite database is used, loading the admin interface fails
because the backup button is not generated.
This PR is solves it by checking if the elements are valid.
Also made some other js/css changes and fixed some eslint errors.
Showing
_posterrors is better now.Update jquery to latest version.
Fixes #3166
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.