algobasket / PeatioCryptoExchange

An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
https://www.peatio.info
186 stars 205 forks source link

change markets drop down to base market instead of quote market #67

Closed altcoin-services closed 5 years ago

altcoin-services commented 5 years ago

hello, i wanted to change markets drop down to base market instead of quote market, i tried changing : app/controllers/private/markets_controller.rb line 15 from: @market_groups = @markets.map(&:quote_unit).uniq to: @market_groups = @markets.map(&:base_unit).uniq other markets than market pairs disappeared, but when i click on for example btc market it doesn't show anything, i also changed : &.eth { tr.quote-eth { display: block; } } to : &.eth { tr.base-eth { display: block; } } on: app/assets/stylesheets/market.dss.scss it didn't worked either, any help? thanks.

altcoin-services commented 5 years ago

Actually I wanted the markets drop down to show only market pairs not all coins which I added to exchange.

pankaj9310 commented 5 years ago

Add flag on markets.yml file and use that

m4hdi1995 commented 5 years ago

@pankaj9310 thanks for your answer , what do you mean ? it's one of coins on my markets.yml :

pankaj9310 commented 5 years ago

visible: false # default to true

un comment this line and set visible:false

altcoin-services commented 5 years ago

@pankaj9310 it says "We're sorry, but something went wrong." after uncommenting #visible: false

altcoin-services commented 5 years ago

managed to make it work by switching base with quote on markets.yml