Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-04-02 08:30:10 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
ebb82b2e80d926d7d76fa972bf11599350fed65c
notifications-admin/app/assets/javascripts/registerSecurityKey.js

15 lines
299 B
JavaScript
Raw Normal View History

Add page for security keys with stubbed data This adds a new platform admin settings row, leading a page which shows any existing keys and allows a new one to be registered. Until the APIs for this are implemented, the user API client just returns some stubbed data for manual testing. This also includes a basic JavaScript module to do the main work of registering a new authenticator, to be implemented in the next commits. Some more minor notes: - Setting the headings in the mapping_table is necessary to get the horizontal rule along the top (to match the design). - Setting caption to False in the mapping_table is necessary to stop an extra margin appearing at the top.
2021-05-07 15:00:01 +01:00
(function(window) {
"use strict";
window.GOVUK.Modules.RegisterSecurityKey = function() {
this.start = function(component) {
$(component)
.on('click', function(event) {
event.preventDefault();
alert('not implemented');
});
};
};
})(window);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 2684ms Template: 80ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API