Skip to content
Snippets Groups Projects
Verified Commit 6d03803a authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Modify sub-resource-lists too

parent 41f0eb72
No related branches found
No related tags found
No related merge requests found
Pipeline #7603 failed
...@@ -16,7 +16,8 @@ module Passwordstate ...@@ -16,7 +16,8 @@ module Passwordstate
alias title folder_name alias title folder_name
def password_lists def password_lists
Passwordstate::ResourceList.new client, Passwordstate::Resources::PasswordList, Passwordstate::ResourceList.new Passwordstate::Resources::PasswordList,
client: client,
search_query: { tree_path: tree_path }, search_query: { tree_path: tree_path },
all_path: 'searchpasswordlists', all_path: 'searchpasswordlists',
all_query: { tree_path: tree_path }, all_query: { tree_path: tree_path },
......
...@@ -58,7 +58,8 @@ module Passwordstate ...@@ -58,7 +58,8 @@ module Passwordstate
def history def history
raise 'Password history only available on stored passwords' unless stored? raise 'Password history only available on stored passwords' unless stored?
Passwordstate::ResourceList.new client, PasswordHistory, Passwordstate::ResourceList.new PasswordHistory,
client: client,
all_path: "passwordhistory/#{password_id}", all_path: "passwordhistory/#{password_id}",
only: :all only: :all
end end
......
...@@ -45,7 +45,8 @@ module Passwordstate ...@@ -45,7 +45,8 @@ module Passwordstate
end end
def passwords def passwords
Passwordstate::ResourceList.new client, Passwordstate::Resources::Password, Passwordstate::ResourceList.new Passwordstate::Resources::Password,
client: client,
all_path: "passwords/#{password_list_id}", all_path: "passwords/#{password_list_id}",
all_query: { query_all: nil }, all_query: { query_all: nil },
search_path: "searchpasswords/#{password_list_id}", search_path: "searchpasswords/#{password_list_id}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment