Commit Graph

22 Commits

Author SHA1 Message Date
mabashian
6b3f45bc26 Changes copy behavior to reload list rather than navigate to edit form. Shows toast message on successful copy. 2018-07-19 16:04:18 -04:00
Haokun-Chen
49f0a63150 fix error when deleting the only item on page 2 for list page of organization, scheduler,
instance_groups, inventories, projects, jobs, template, credentials, inventory-scripts,
teams, users, credential-types and notifications
2018-06-11 15:56:44 -04:00
Jake McDermott
50d95ddc3f implement model-based credential copy 2018-02-13 17:15:37 -05:00
Matthew Jones
9dbcc5934e Merge remote-tracking branch 'tower/release_3.2.2' into devel 2017-12-13 12:25:47 -05:00
mabashian
d3da899459 Defined delete string in the base with the ability to pass the resource name in 2017-11-22 13:28:02 -05:00
mabashian
565b0b82dd Tweaked language on delete warning modal 2017-11-17 12:45:01 -05:00
mabashian
25dc3f8778 Update delete modals and fixed unit test failures 2017-11-10 11:31:11 -05:00
mabashian
4cd2f93c31 Updated delete warnings to indicate resources that may be invalidated as a result of deletion 2017-11-08 16:38:34 -05:00
Ben Thomasson
7d767f8f63 Automatically change .error to .catch.
Use this script to change .error to .catch using this linux script:

    #!/bin/bash -ex
    #Run in awx/awx/ui/client/src
    FILES=`grep -l -R "\.error(\s*function\s*(data,\s*status)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(data,\s*status)\s*{/.catch(({data, status}) => {/g" $FILES

    FILES=`grep -l -R "\.error(this\.error\.bind(this))" . | xargs`
    sed -i "s/\.error(this\.error\.bind(this))/\.catch(this\.catch\.bind(this))/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(error)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(error)\s*{/.catch(({error}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(obj,\s*status)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(obj,\s*status)\s*{/.catch(({obj, status}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(res,\s*status)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(res,\s*status)\s*{/.catch(({res, status}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*(msg,\s*code)\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*(msg,\s*code)\s*{/.catch(({msg, code}) => {/g" $FILES

    FILES=`grep -l -R "\.error(\s*function\s*()\s*{" . | xargs`
    sed -i "s/\.error(\s*function\s*()\s*{/.catch(() => {/g" $FILES
2017-10-23 12:29:22 -04:00
Ben Thomasson
834e6c692c Automatically change instances of .success to .then with this linux script:
#Run in awx/awx/ui/client/src

    #!/bin/bash -ex
    FILES=`grep -l -R "\.success(\s*function\s*(data)\s*{" . | xargs`
    sed -i "s/\.success(\s*function\s*(data)\s*{/\.then(({data}) => {/g" $FILES

    FILES=`grep -l -R "\.success(\s*function\s*()\s*{" . | xargs`
    sed -i "s/\.success(\s*function\s*()\s*{/\.then(() => {/g" $FILES

    FILES=`grep -l -R "\.success(this\.success\.bind(this))" . | xargs`
    sed -i "s/\.success(this\.success\.bind(this))/\.then(this\.then\.bind(this))/g" $FILES
2017-10-23 12:29:21 -04:00
gconsidine
766a088749 Use credential_type to fetch associated types in list view 2017-10-10 14:38:49 -04:00
gconsidine
98cf28d9f1 Update model interaction 2017-07-26 17:49:05 -04:00
gconsidine
20162014b7 Add check if list is an array before looping 2017-07-24 16:50:19 -04:00
gconsidine
ce4eccc513 Add assignment of on list change 2017-07-24 14:27:40 -04:00
gconsidine
6fa3872c86 Add kind column to credential list
* Populate kind column with credential_type name
* Fix replace/revert input group button sizing
2017-07-18 14:39:56 -04:00
Michael Abashian
e107bc6cc9 Merge pull request #6739 from mabashian/4556-delete-last-item-page
Fixed deleting last resource on a page 404 error
2017-06-27 10:08:59 -04:00
Michael Abashian
da0dfdbe13 Fixed deleting last resource on a page 404 error 2017-06-26 16:23:34 -04:00
Michael Abashian
26af4adb61 Removed ClearScope service in favor of logic in stateChangeStart 2017-06-24 21:50:31 -04:00
John Mitchell
2b57027067 deduping options request and possibly fixing choices of undefined error 2017-04-28 16:00:29 -04:00
Michael Abashian
1869ba6742 Removed unnecessary dependency injections 2017-03-16 14:53:17 -04:00
Michael Abashian
bfcbd8a823 Leftover cleanup from 3.1 back to devel 2017-02-28 12:03:41 -05:00
Michael Abashian
7d23160c1a Modularized what was left in the controllers directory 2017-02-23 15:54:43 -05:00