From dc1efdc3a3f1918f9ae8c86c2cca9829b62dabbe Mon Sep 17 00:00:00 2001 From: Ivan Filippov Date: Sun, 15 May 2016 13:12:33 -0600 Subject: [PATCH 1/2] Reload dashboard only after domain deletion finished. Fixes #40. --- app/static/admin/pages/scripts/my-button-action.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/static/admin/pages/scripts/my-button-action.js b/app/static/admin/pages/scripts/my-button-action.js index 2c23ae7..1f2f8b7 100644 --- a/app/static/admin/pages/scripts/my-button-action.js +++ b/app/static/admin/pages/scripts/my-button-action.js @@ -29,8 +29,10 @@ var MyButtonAction = function () { bootbox.confirm("Are you sure you want to delete this domain?", function(result) { if (result == true){ var domain = document.getElementById('delete_domain').value; - $.get("/admin/domain/"+ domain +"/delete"); - window.location.href = '/'; + $.get("/admin/domain/"+ domain +"/delete").always(function() { + window.location.href = '/'; + }); + } }); }); From 504b772fbab145c4a0634eab53bb7170468d3770 Mon Sep 17 00:00:00 2001 From: Ivan Filippov Date: Fri, 27 May 2016 00:03:59 -0600 Subject: [PATCH 2/2] Fix some spelling mistakes in README. Add supported version information. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f7a15a5..fe8ba57 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,15 @@ PowerDNS Web-GUI - Built by Flask - Multiple domain management - Local / LDAP user authentication - User management -- User access management base on domain +- User access management based on domain - User activity logging - Dashboard and pdns service statistics ## Setup +### PowerDNS Version Support: +PowerDNS-Admin supports PowerDNS autoritative server versions **3.4.2** and higher but does **not** yet support PowerDNS 4.0.0 + ### pdns Service I assume that you have already installed powerdns service. Make sure that your `/etc/pdns/pdns.conf` has these contents ``` @@ -30,7 +33,7 @@ MariaDB [(none)]> GRANT ALL PRIVILEGES ON powerdnsadmin.* TO powerdnsadmin@'%' I ### PowerDNS-Admin -In this installation guide, I am using CentOS 7 and run my python stuffs with *virtualenv*. If you don't have it, let install: +In this installation guide, I am using CentOS 7 and run my python stuffs with *virtualenv*. If you don't have it, lets install it: ``` $ sudo yum install python-pip $ sudo pip install virtualenv @@ -55,7 +58,7 @@ Web application configuration is stored in `config.py` file. Let's clone it from Create database after having proper configs ``` -(flask)% ./createdb.py +(flask)% ./create_db.py ```