mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 15:39:54 +03:00
feat: add option for default registries when SINGLE_REGISTRY=false
This commit is contained in:
parent
f4455703ca
commit
8fcae3cda4
6 changed files with 42 additions and 15 deletions
|
@ -38,13 +38,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
</material-popup>
|
||||
<script>
|
||||
import {
|
||||
getRegistryServers
|
||||
getRegistryServers,
|
||||
removeRegistryServers
|
||||
} from '../../scripts/utils';
|
||||
export default {
|
||||
remove(event) {
|
||||
const url = event.currentTarget.attributes.url && event.currentTarget.attributes.url.value;
|
||||
const registryServer = getRegistryServers().filter(e => e !== url);
|
||||
localStorage.setItem('registryServer', JSON.stringify(registryServer));
|
||||
removeRegistryServers(url);
|
||||
setTimeout(() => this.update(), 100);
|
||||
},
|
||||
getRegistryServers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue